<!DOCTYPE html>
<html>

<head>
  <title>Quarkus - Amazon SNS Client</title>
  <script id="adobe_dtm" src="https://www.redhat.com/dtm.js" type="text/javascript"></script>
  <script src="/assets/javascript/highlight.pack.js" type="text/javascript"></script>
  <META HTTP-EQUIV='Content-Security-Policy' CONTENT="default-src 'none'; script-src 'self' 'unsafe-eval' 'sha256-ANpuoVzuSex6VhqpYgsG25OHWVA1I+F6aGU04LoI+5s=' 'sha256-ipy9P/3rZZW06mTLAR0EnXvxSNcnfSDPLDuh3kzbB1w=' js.bizographics.com https://www.redhat.com assets.adobedtm.com jsonip.com https://ajax.googleapis.com https://www.googletagmanager.com https://www.google-analytics.com https://use.fontawesome.com; style-src 'self' https://fonts.googleapis.com https://use.fontawesome.com; img-src 'self' *; media-src 'self' ; frame-src https://www.googletagmanager.com https://www.youtube.com; frame-ancestors 'none'; base-uri 'none'; object-src 'none'; form-action 'none'; font-src 'self' https://use.fontawesome.com https://fonts.gstatic.com;">
  <META HTTP-EQUIV='X-Frame-Options' CONTENT="DENY">
  <META HTTP-EQUIV='X-XSS-Protection' CONTENT="1; mode=block">
  <META HTTP-EQUIV='X-Content-Type-Options' CONTENT="nosniff">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="Quarkus: Supersonic Subatomic Java">
  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:site" content="@QuarkusIO"> 
  <meta name="twitter:creator" content="@QuarkusIO">
  <meta property="og:url" content="https://quarkus.io/guides/amazon-sns" />
  <meta property="og:title" content="Quarkus - Amazon SNS Client" />
  <meta property="og:description" content="Quarkus: Supersonic Subatomic Java" />
  <meta property="og:image" content="/assets/images/quarkus_card.png" />
  <link rel="canonical" href="https://quarkus.io/guides/amazon-sns">
  <link rel="shortcut icon" type="image/png" href="/favicon.ico" >
  <link rel="stylesheet" href="https://quarkus.io/guides/stylesheet/config.css" />
  <link rel="stylesheet" href="/assets/css/main.css" />
  <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
  <link rel="alternate" type="application/rss+xml"  href="https://quarkus.io/feed.xml" title="Quarkus">
  <script src="https://quarkus.io/assets/javascript/goan.js" type="text/javascript"></script>
  <script src="https://quarkus.io/assets/javascript/hl.js" type="text/javascript"></script>
</head>

<body class="guides">
  <!-- Google Tag Manager (noscript) -->
  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NJWS5L"
  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  <!-- End Google Tag Manager (noscript) -->

  <div class="nav-wrapper">
  <div class="grid-wrapper">
    <div class="width-12-12">
      <input type="checkbox" id="checkbox" />
      <nav id="main-nav" class="main-nav">
  <div class="container">
    <div class="logo-wrapper">
      
        <a href="/"><img src="/assets/images/quarkus_logo_horizontal_rgb_600px_reverse.png" class="project-logo" title="Quarkus"></a>
      
    </div>
    <label class="nav-toggle" for="checkbox">
      <i class="fa fa-bars"></i>
    </label>
    <div id="menu" class="menu">
      <span>
        <a href="/get-started/" class="">Get Started</a>
      </span>
      <span>
        <a href="/guides/" class="active">Guides</a>
      </span>
      <span>
        <a href="/community/" class="">Community</a>
      </span>
      <span>
        <a href="/support/" class="">Support</a>
      </span>
      <span>
        <a href="/blog/" class="">Blog</a>
      </span>
      <span>
        <a href="https://code.quarkus.io" class="button-cta secondary white">Start Coding</a>
      </span>
    </div>
  </div>
      </nav>
    </div>
  </div>
</div>

  <div class="content">
    <div class="guide">
  <div class="width-12-12">
    <h1 class="text-caps">Quarkus - Amazon SNS Client</h1>
    <div class="hide-mobile toc"><ul class="sectlevel1">
<li><a href="#prerequisites">Prerequisites</a>
<ul class="sectlevel2">
<li><a href="#set-up-sns-locally">Set up SNS locally</a></li>
<li><a href="#create-a-sns-topic">Create a SNS topic</a></li>
</ul>
</li>
<li><a href="#solution">Solution</a></li>
<li><a href="#creating-the-maven-project">Creating the Maven project</a></li>
<li><a href="#creating-json-rest-service">Creating JSON REST service</a></li>
<li><a href="#configuring-sns-clients">Configuring SNS clients</a></li>
<li><a href="#next-steps">Next steps</a>
<ul class="sectlevel2">
<li><a href="#packaging">Packaging</a></li>
<li><a href="#going-asynchronous">Going asynchronous</a></li>
</ul>
</li>
<li><a href="#configuration-reference">Configuration Reference</a></li>
</ul></div>
    <div>
      <div id="preamble">
<div class="sectionbody">
<div class="paragraph">
<p>Amazon Simple Notification Service (SNS) is a highly available and fully managed pub/sub messaging service.
It provides topics for high-throughput, push-based, many-to-many messaging. Messages can fan out to a large number of subscriber endpoints for
parallel processing, including Amazon SQS queues, AWS Lambda functions, and HTTP/S webhooks. Additionally, SNS can be used
to fan out notifications to end users using mobile push, SMS and email.</p>
</div>
<div class="paragraph">
<p>You can find more information about SNS at <a href="https://aws.amazon.com/sns/">the Amazon SNS website</a>.</p>
</div>
<div class="admonitionblock note">
<table>
<tr>
<td class="icon">
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
The SNS extension is based on <a href="https://docs.aws.amazon.com/sdk-for-java/v2/developer-guide/welcome.html">AWS Java SDK 2.x</a>.
It&#8217;s a major rewrite of the 1.x code base that offers two programming models (Blocking &amp; Async).
</td>
</tr>
</table>
</div>
<div class="admonitionblock note">
<table>
<tr>
<td class="icon">
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
<div class="paragraph">
<p>This technology is considered preview.</p>
</div>
<div class="paragraph">
<p>In <em>preview</em>, backward compatibility and presence in the ecosystem is not guaranteed.
Specific improvements might require to change configuration or APIs and plans to become <em>stable</em> are under way.
Feedback is welcome on our <a href="https://groups.google.com/d/forum/quarkus-dev">mailing list</a> or as issues in our <a href="https://github.com/quarkusio/quarkus/issues">GitHub issue tracker</a>.</p>
</div>
<div class="paragraph">
<p>For a full list of possible extension statuses, check our <a href="https://quarkus.io/faq/#extension-status">FAQ entry</a>.</p>
</div>
</td>
</tr>
</table>
</div>
<div class="paragraph">
<p>The Quarkus extension supports two programming models:</p>
</div>
<div class="ulist">
<ul>
<li>
<p>Blocking access using URL Connection HTTP client (by default) or the Apache HTTP Client</p>
</li>
<li>
<p><a href="https://docs.aws.amazon.com/sdk-for-java/v2/developer-guide/basics-async.html">Asynchronous programming</a> based on JDK&#8217;s <code>CompletableFuture</code> objects and the Netty HTTP client.</p>
</li>
</ul>
</div>
<div class="paragraph">
<p>In this guide, we see how you can get your REST services to use SNS locally and on AWS.</p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="prerequisites"><a class="anchor" href="#prerequisites"></a>Prerequisites</h2>
<div class="sectionbody">
<div class="paragraph">
<p>To complete this guide, you need:</p>
</div>
<div class="ulist">
<ul>
<li>
<p>JDK 1.8+ installed with <code>JAVA_HOME</code> configured appropriately</p>
</li>
<li>
<p>an IDE</p>
</li>
<li>
<p>Apache Maven 3.6.2+</p>
</li>
<li>
<p>An AWS Account to access the SNS service</p>
</li>
<li>
<p>Optionally, Docker for your system to run SNS locally for testing purposes</p>
</li>
</ul>
</div>
<div class="sect2">
<h3 id="set-up-sns-locally"><a class="anchor" href="#set-up-sns-locally"></a>Set up SNS locally</h3>
<div class="paragraph">
<p>The easiest way to start working with SNS is to run a local instance as a container.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="shell" class="language-shell hljs">docker run -it --publish 8009:4575 -e SERVICES=sns -e START_WEB=0 localstack/localstack:0.11.1</code></pre>
</div>
</div>
<div class="paragraph">
<p>This starts a SNS instance that is accessible on port <code>8009</code>.</p>
</div>
<div class="paragraph">
<p>Create an AWS profile for your local instance using AWS CLI:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="shell" class="language-shell hljs">$ aws configure --profile localstack
AWS Access Key ID [None]: test-key
AWS Secret Access Key [None]: test-secret
Default region name [None]: us-east-1
Default output format [None]:</code></pre>
</div>
</div>
</div>
<div class="sect2">
<h3 id="create-a-sns-topic"><a class="anchor" href="#create-a-sns-topic"></a>Create a SNS topic</h3>
<div class="paragraph">
<p>Create a SNS topic using AWS CLI and store in <code>TOPIC_ARN</code> environment variable</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="shell" class="language-shell hljs">TOPIC_ARN=`aws sns create-topic --name=QuarksCollider --profile localstack --endpoint-url=http://localhost:8009`</code></pre>
</div>
</div>
<div class="paragraph">
<p>If you want to run the demo using SNS on your AWS account, you can create a topic using AWS default profile</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="shell" class="language-shell hljs">TOPIC_ARN=`aws sns create-topic --name=QuarksCollider`</code></pre>
</div>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="solution"><a class="anchor" href="#solution"></a>Solution</h2>
<div class="sectionbody">
<div class="paragraph">
<p>The application built here allows to shoot elementary particles (quarks) into a <code>QuarksCollider</code> topic of the AWS SNS.
Additionally, we create a resource that allows to subscribe to the <code>QuarksCollider</code> topic in order to receive published quarks.</p>
</div>
<div class="paragraph">
<p>We recommend that you follow the instructions in the next sections and create the application step by step.
However, you can go right to the completed example.</p>
</div>
<div class="paragraph">
<p>Clone the Git repository: <code>git clone <a href="https://github.com/quarkusio/quarkus-quickstarts.git" class="bare">https://github.com/quarkusio/quarkus-quickstarts.git</a></code>, or download an <a href="https://github.com/quarkusio/quarkus-quickstarts/archive/master.zip">archive</a>.</p>
</div>
<div class="paragraph">
<p>The solution is located in the <code>amazon-sns-quickstart</code> <a href="https://github.com/quarkusio/quarkus-quickstarts/tree/master/amazon-sns-quickstart">directory</a>.</p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="creating-the-maven-project"><a class="anchor" href="#creating-the-maven-project"></a>Creating the Maven project</h2>
<div class="sectionbody">
<div class="paragraph">
<p>First, we need a new project. Create a new project with the following command:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="shell" class="language-shell hljs">mvn io.quarkus:quarkus-maven-plugin:1.7.0.Final:create \
    -DprojectGroupId=org.acme \
    -DprojectArtifactId=amazon-sns-quickstart \
    -DclassName="org.acme.sns.QuarksCannonSyncResource" \
    -Dpath="/sync-cannon" \
    -Dextensions="resteasy-jsonb,amazon-sns,resteasy-mutiny"
cd amazon-sns-quickstart</code></pre>
</div>
</div>
<div class="paragraph">
<p>This command generates a Maven structure importing the RESTEasy/JAX-RS, Mutiny and Amazon SNS Client extensions.
After this, the <code>amazon-sns</code> extension has been added to your <code>pom.xml</code> as well as the Mutiny support for RESTEasy.</p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="creating-json-rest-service"><a class="anchor" href="#creating-json-rest-service"></a>Creating JSON REST service</h2>
<div class="sectionbody">
<div class="paragraph">
<p>In this example, we will create an application that allows to publish quarks. The example application will demonstrate the two programming models supported by the extension.</p>
</div>
<div class="paragraph">
<p>First, let&#8217;s create the <code>Quark</code> bean as follows:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="java" class="language-java hljs">package org.acme.sns.model;

import io.quarkus.runtime.annotations.RegisterForReflection;
import java.util.Objects;

@RegisterForReflection
public class Quark {

    private String flavor;
    private String spin;

    public Quark() {
    }

    public String getFlavor() {
        return flavor;
    }

    public void setFlavor(String flavor) {
        this.flavor = flavor;
    }

    public String getSpin() {
        return spin;
    }

    public void setSpin(String spin) {
        this.spin = spin;
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof Quark)) {
            return false;
        }

        Quark other = (Quark) obj;

        return Objects.equals(other.flavor, this.flavor);
    }

    @Override
    public int hashCode() {
        return Objects.hash(this.flavor);
    }
}</code></pre>
</div>
</div>
<div class="paragraph">
<p>Then, create a <code>org.acme.sns.QuarksCannonSyncResource</code> that will provide an API to shoot quarks into the SNS topic via the SNS synchronous client.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="java" class="language-java hljs">package org.acme.sns;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.acme.sns.model.Quark;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.jboss.logging.Logger;
import software.amazon.awssdk.services.sns.SnsClient;
import software.amazon.awssdk.services.sns.model.PublishResponse;

@Path("/sync/cannon")
@Produces(MediaType.TEXT_PLAIN)
public class QuarksCannonSyncResource {

    private static final Logger LOGGER = Logger.getLogger(QuarksCannonSyncResource.class);

    @Inject
    SnsClient sns;

    @ConfigProperty(name = "topic.arn")
    String topicArn;

    static ObjectWriter QUARK_WRITER = new ObjectMapper().writerFor(Quark.class);

    @POST
    @Path("/shoot")
    @Consumes(MediaType.APPLICATION_JSON)
    public Response publish(Quark quark) throws Exception {
        String message = QUARK_WRITER.writeValueAsString(quark);
        PublishResponse response = sns.publish(p -&gt; p.topicArn(topicArn).message(message));
        LOGGER.infov("Fired Quark[{0}, {1}}]", quark.getFlavor(), quark.getSpin());
        return Response.ok().entity(response.messageId()).build();
    }
}</code></pre>
</div>
</div>
<div class="paragraph">
<p>Because of the fact that messages published must be simply a <code>String</code> we&#8217;re using Jackson&#8217;s <code>ObjectWriter</code> in order to serialize our <code>Quark</code> objects into a <code>String</code>.</p>
</div>
<div class="paragraph">
<p>The missing piece is the subscriber that will receive the messages published to our topic. Before implementing subscribers, we need to define POJO classes representing messages posted by the AWS SNS.</p>
</div>
<div class="paragraph">
<p>Let&#8217;s create two classes that represent SNS Notification and SNS Subscription Confirmation messages based on the <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-message-and-json-formats.html">AWS SNS Message and JSON formats</a></p>
</div>
<div class="paragraph">
<p>Create <code>org.acme.sns.model.SnsNotification</code> class</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="java" class="language-java hljs">package org.acme.sns.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class SnsNotification {

    @JsonProperty("Message")
    private String message;

    @JsonProperty("MessageId")
    private String messageId;

    @JsonProperty("Signature")
    private String signature;

    @JsonProperty("SignatureVersion")
    private String signatureVersion;

    @JsonProperty("SigningCertURL")
    private String signinCertUrl;

    @JsonProperty("Subject")
    private String subject;

    @JsonProperty("Timestamp")
    private String timestamp;

    @JsonProperty("TopicArn")
    private String topicArn;

    @JsonProperty("Type")
    private String type;

    @JsonProperty("UnsubscribeURL")
    private String unsubscribeURL;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getSignatureVersion() {
        return signatureVersion;
    }

    public void setSignatureVersion(String signatureVersion) {
        this.signatureVersion = signatureVersion;
    }

    public String getSigninCertUrl() {
        return signinCertUrl;
    }

    public void setSigninCertUrl(String signinCertUrl) {
        this.signinCertUrl = signinCertUrl;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getTopicArn() {
        return topicArn;
    }

    public void setTopicArn(String topicArn) {
        this.topicArn = topicArn;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUnsubscribeURL() {
        return unsubscribeURL;
    }

    public void setUnsubscribeURL(String unsubscribeURL) {
        this.unsubscribeURL = unsubscribeURL;
    }
}</code></pre>
</div>
</div>
<div class="paragraph">
<p>Then, create <code>org.acme.sns.SnsSubscriptionConfirmation</code></p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="java" class="language-java hljs">package org.acme.sns.model;

import com.fasterxml.jackson.annotation.JsonProperty;

public class SnsSubscriptionConfirmation {

    @JsonProperty("Message")
    private String message;

    @JsonProperty("MessageId")
    private String messageId;

    @JsonProperty("Signature")
    private String signature;

    @JsonProperty("SignatureVersion")
    private String signatureVersion;

    @JsonProperty("SigningCertURL")
    private String signingCertUrl;

    @JsonProperty("SubscribeURL")
    private String subscribeUrl;

    @JsonProperty("Timestamp")
    private String timestamp;

    @JsonProperty("Token")
    private String token;

    @JsonProperty("TopicArn")
    private String topicArn;

    @JsonProperty("Type")
    private String type;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getSignatureVersion() {
        return signatureVersion;
    }

    public void setSignatureVersion(String signatureVersion) {
        this.signatureVersion = signatureVersion;
    }

    public String getSigningCertUrl() {
        return signingCertUrl;
    }

    public void setSigningCertUrl(String signingCertUrl) {
        this.signingCertUrl = signingCertUrl;
    }

    public String getSubscribeUrl() {
        return subscribeUrl;
    }

    public void setSubscribeUrl(String subscribeUrl) {
        this.subscribeUrl = subscribeUrl;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getTopicArn() {
        return topicArn;
    }

    public void setTopicArn(String topicArn) {
        this.topicArn = topicArn;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}</code></pre>
</div>
</div>
<div class="paragraph">
<p>Now, create <code>org.acme.QuarksShieldSyncResource</code> REST resources that:
- Allows to subscribe itself to our SNS topic
- Unsubscribe from the SNS topic
- Receive notifications from the subscribed SNS topic</p>
</div>
<div class="admonitionblock note">
<table>
<tr>
<td class="icon">
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
Keep in mind that AWS SNS supports multiple types of subscribers (that is web servers, email addresses, AWS SQS queues, AWS Lambda functions, and many more), but for the sake of the
quickstart we will show how to subscribe an HTTP endpoint served by our application.
</td>
</tr>
</table>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="java" class="language-java hljs">package org.acme.sns;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import java.util.HashMap;
import java.util.Map;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.acme.sns.model.Quark;
import org.acme.sns.model.SnsNotification;
import org.acme.sns.model.SnsSubscriptionConfirmation;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.jboss.logging.Logger;
import software.amazon.awssdk.services.sns.SnsClient;
import software.amazon.awssdk.services.sns.model.SubscribeResponse;

@Path("/sync/shield")
public class QuarksShieldSyncResource {

    private static final Logger LOGGER = Logger.getLogger(QuarksShieldSyncResource.class);

    private static final String NOTIFICATION_TYPE = "Notification";
    private static final String SUBSCRIPTION_CONFIRMATION_TYPE = "SubscriptionConfirmation";
    private static final String UNSUBSCRIPTION_CONFIRMATION_TYPE = "UnsubscribeConfirmation";

    @Inject
    SnsClient sns;

    @ConfigProperty(name = "topic.arn")
    String topicArn;

    @ConfigProperty(name = "quarks.shield.base.url")
    String quarksShieldBaseUrl;

    private volatile String subscriptionArn;

    static Map&lt;Class&lt;?&gt;, ObjectReader&gt; READERS = new HashMap&lt;&gt;();

    static {
        READERS.put(SnsNotification.class, new ObjectMapper().readerFor(SnsNotification.class));
        READERS.put(SnsSubscriptionConfirmation.class, new ObjectMapper().readerFor(SnsSubscriptionConfirmation.class));
        READERS.put(Quark.class, new ObjectMapper().readerFor(Quark.class));
    }

    @POST
    @Consumes({MediaType.TEXT_PLAIN})
    public Response notificationEndpoint(@HeaderParam("x-amz-sns-message-type") String messageType, String message) throws JsonProcessingException {
        if (messageType == null) {
            return Response.status(400).build();
        }

        if (messageType.equals(NOTIFICATION_TYPE)) {
            SnsNotification notification = readObject(SnsNotification.class, message);
            Quark quark = readObject(Quark.class, notification.getMessage());
            LOGGER.infov("Quark[{0}, {1}] collision with the shield.", quark.getFlavor(), quark.getSpin());
        } else if (messageType.equals(SUBSCRIPTION_CONFIRMATION_TYPE)) {
            SnsSubscriptionConfirmation subConf = readObject(SnsSubscriptionConfirmation.class, message);
            sns.confirmSubscription(cs -&gt; cs.topicArn(topicArn).token(subConf.getToken()));
            LOGGER.info("Subscription confirmed. Ready for quarks collisions.");
        } else if (messageType.equals(UNSUBSCRIPTION_CONFIRMATION_TYPE)) {
            LOGGER.info("We are unsubscribed");
        } else {
            return Response.status(400).entity("Unknown messageType").build();
        }

        return Response.ok().build();
    }

    @POST
    @Path("/subscribe")
    public Response subscribe() {
        String notificationEndpoint = notificationEndpoint();
        SubscribeResponse response = sns.subscribe(s -&gt; s.topicArn(topicArn).protocol("http").endpoint(notificationEndpoint));
        subscriptionArn = response.subscriptionArn();
        LOGGER.infov("Subscribed Quarks shield &lt;{0}&gt; : {1} ", notificationEndpoint, response.subscriptionArn());
        return Response.ok().entity(response.subscriptionArn()).build();
    }

    @POST
    @Path("/unsubscribe")
    public Response unsubscribe() {
        if (subscriptionArn != null) {
            sns.unsubscribe(s -&gt; s.subscriptionArn(subscriptionArn));
            LOGGER.infov("Unsubscribed quarks shield for id = {0}", subscriptionArn);
            return Response.ok().build();
        } else {
            LOGGER.info("Not subscribed yet");
            return Response.status(400).entity("Not subscribed yet").build();
        }
    }

    private String notificationEndpoint() {
        return quarksShieldBaseUrl + "/sync/shield";
    }

    private &lt;T&gt; T readObject(Class&lt;T&gt; clazz, String message) {
        T object = null;
        try {
            object = READERS.get(clazz).readValue(message);
        } catch (JsonProcessingException e) {
            LOGGER.errorv("Unable to deserialize message &lt;{0}&gt; to Class &lt;{1}&gt;", message, clazz.getSimpleName());
            throw new RuntimeException(e);
        }
        return object;
    }
}</code></pre>
</div>
</div>
<div class="olist arabic">
<ol class="arabic">
<li>
<p><code>subscribe()</code> endpoint subscribes to our topic by providing the URL to the POST endpoint receiving SNS notification requests.</p>
</li>
<li>
<p><code>unsubscribe()</code> simply removes our subscription, so any messages published to the topic will not be routed to our endpoint anymore</p>
</li>
<li>
<p><code>notificationEndpoint()</code> is called by SNS on new message if endpoint is subscribed.
See <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-message-and-json-formats.html">Amazon SNS message and JSON formats</a> for details about the format of the messages SNS can submit.</p>
</li>
</ol>
</div>
</div>
</div>
<div class="sect1">
<h2 id="configuring-sns-clients"><a class="anchor" href="#configuring-sns-clients"></a>Configuring SNS clients</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Both SNS clients (sync and async) are configurable via the <code>application.properties</code> file that can be provided in the <code>src/main/resources</code> directory.
Additionally, you need to add to the classpath a proper implementation of the sync client. By default the extension uses URL connection HTTP client, so
you need to add a URL connection client dependency to the <code>pom.xml</code> file:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="xml" class="language-xml hljs">&lt;dependency&gt;
    &lt;groupId&gt;software.amazon.awssdk&lt;/groupId&gt;
    &lt;artifactId&gt;url-connection-client&lt;/artifactId&gt;
&lt;/dependency&gt;</code></pre>
</div>
</div>
<div class="paragraph">
<p>If you want to use Apache HTTP client instead, configure it as follows:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="properties" class="language-properties hljs">quarkus.sns.sync-client.type=apache</code></pre>
</div>
</div>
<div class="paragraph">
<p>And add the following dependency to the application <code>pom.xml</code>:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="xml" class="language-xml hljs">&lt;dependency&gt;
    &lt;groupId&gt;software.amazon.awssdk&lt;/groupId&gt;
    &lt;artifactId&gt;apache-client&lt;/artifactId&gt;
&lt;/dependency&gt;</code></pre>
</div>
</div>
<div class="paragraph">
<p>If you&#8217;re going to use a local SNS instance, configure it as follows:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="properties" class="language-properties hljs">quarkus.sns.endpoint-override=http://localhost:8009

quarkus.sns.aws.region=us-east-1
quarkus.sns.aws.credentials.type=static
quarkus.sns.aws.credentials.static-provider.access-key-id=test-key
quarkus.sns.aws.credentials.static-provider.secret-access-key=test-secret</code></pre>
</div>
</div>
<div class="ulist">
<ul>
<li>
<p><code>quarkus.sns.aws.region</code> - It&#8217;s required by the client, but since you&#8217;re using a local SNS instance you can pick any valid AWS region.</p>
</li>
<li>
<p><code>quarkus.sns.aws.credentials.type</code> - Set <code>static</code> credentials provider with any values for <code>access-key-id</code> and <code>secret-access-key</code></p>
</li>
<li>
<p><code>quarkus.sns.endpoint-override</code> - Override the SNS client to use a local instance instead of an AWS service</p>
</li>
</ul>
</div>
<div class="paragraph">
<p>If you want to work with an AWS account, you&#8217;d need to set it with:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="properties" class="language-properties hljs">quarkus.sns.aws.region=&lt;YOUR_REGION&gt;
quarkus.sns.aws.credentials.type=default</code></pre>
</div>
</div>
<div class="ulist">
<ul>
<li>
<p><code>quarkus.sns.aws.region</code> you should set it to the region where you provisioned the SNS table,</p>
</li>
<li>
<p><code>quarkus.sns.aws.credentials.type</code> - use the <code>default</code> credentials provider chain that looks for credentials in this order:</p>
<div class="ulist">
<ul>
<li>
<p>Java System Properties - <code>aws.accessKeyId</code> and <code>aws.secretAccessKey</code></p>
</li>
<li>
<p>Environment Variables - <code>AWS_ACCESS_KEY_ID</code> and <code>AWS_SECRET_ACCESS_KEY</code></p>
</li>
<li>
<p>Credential profiles file at the default location (<code>~/.aws/credentials</code>) shared by all AWS SDKs and the AWS CLI</p>
</li>
<li>
<p>Credentials delivered through the Amazon ECS if the <code>AWS_CONTAINER_CREDENTIALS_RELATIVE_URI</code> environment variable is set and the security manager has permission to access the variable,</p>
</li>
<li>
<p>Instance profile credentials delivered through the Amazon EC2 metadata service</p>
</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</div>
<div class="sect1">
<h2 id="next-steps"><a class="anchor" href="#next-steps"></a>Next steps</h2>
<div class="sectionbody">
<div class="sect2">
<h3 id="packaging"><a class="anchor" href="#packaging"></a>Packaging</h3>
<div class="paragraph">
<p>Packaging your application is as simple as <code>./mvnw clean package</code>.
It can be run with <code>java -Dtopic.arn=$TOPIC_ARN -jar target/amazon-sns-quickstart-1.0-SNAPSHOT-runner.jar</code>.</p>
</div>
<div class="paragraph">
<p>With GraalVM installed, you can also create a native executable binary: <code>./mvnw clean package -Dnative</code>.
Depending on your system, that will take some time.</p>
</div>
</div>
<div class="sect2">
<h3 id="going-asynchronous"><a class="anchor" href="#going-asynchronous"></a>Going asynchronous</h3>
<div class="paragraph">
<p>Thanks to the AWS SDK v2.x used by the Quarkus extension, you can use the asynchronous programming model out of the box.</p>
</div>
<div class="paragraph">
<p>Create a <code>org.acme.sns.QuarksCannonAsyncResource</code> REST resource that will be similar to our <code>QuarksCannonSyncResource</code> but using an asynchronous programming model.</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="java" class="language-java hljs">package org.acme.sns;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectWriter;
import io.smallrye.mutiny.Uni;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.acme.sns.model.Quark;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.jboss.logging.Logger;
import software.amazon.awssdk.services.sns.SnsAsyncClient;
import software.amazon.awssdk.services.sns.model.PublishResponse;

@Path("/async/cannon")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public class QuarksCannonAsyncResource {

    private static final Logger LOGGER = Logger.getLogger(QuarksCannonAsyncResource.class);

    @Inject
    SnsAsyncClient sns;

    @ConfigProperty(name = "topic.arn")
    String topicArn;

    static ObjectWriter QUARK_WRITER = new ObjectMapper().writerFor(Quark.class);

    @POST
    @Path("/shoot")
    @Consumes(MediaType.APPLICATION_JSON)
    public Uni&lt;Response&gt; publish(Quark quark) throws Exception {
        String message = QUARK_WRITER.writeValueAsString(quark);
        return Uni.createFrom()
            .completionStage(sns.publish(p -&gt; p.topicArn(topicArn).message(message)))
            .onItem().invoke(item -&gt; LOGGER.infov("Fired Quark[{0}, {1}}]", quark.getFlavor(), quark.getSpin()))
            .onItem().transform(PublishResponse::messageId)
            .onItem().transform(id -&gt; Response.ok().entity(id).build());
    }
}</code></pre>
</div>
</div>
<div class="paragraph">
<p>We create <code>Uni</code> instances from the <code>CompletionStage</code> objects returned by the asynchronous SNS client, and then transform the emitted item.</p>
</div>
<div class="paragraph">
<p>And corresponding async subscriber <code>org.acme.sns.QuarksShieldAsyncResource</code></p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="java" class="language-java hljs">package org.acme.sns;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import io.smallrye.mutiny.Uni;
import java.util.HashMap;
import java.util.Map;
import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import org.acme.sns.model.Quark;
import org.acme.sns.model.SnsNotification;
import org.acme.sns.model.SnsSubscriptionConfirmation;
import org.eclipse.microprofile.config.inject.ConfigProperty;
import org.jboss.logging.Logger;
import software.amazon.awssdk.services.sns.SnsAsyncClient;
import software.amazon.awssdk.services.sns.model.SubscribeResponse;

@Path("/async/shield")
public class QuarksShieldAsyncResource {

    private static final Logger LOGGER = Logger.getLogger(QuarksShieldAsyncResource.class);

    private static final String NOTIFICATION_TYPE = "Notification";
    private static final String SUBSCRIPTION_CONFIRMATION_TYPE = "SubscriptionConfirmation";
    private static final String UNSUBSCRIPTION_CONFIRMATION_TYPE = "UnsubscribeConfirmation";

    @Inject
    SnsAsyncClient sns;

    @ConfigProperty(name = "topic.arn")
    String topicArn;

    @ConfigProperty(name = "quarks.shield.base.url")
    String quarksShieldBaseUrl;

    private volatile String subscriptionArn;

    static Map&lt;Class&lt;?&gt;, ObjectReader&gt; READERS = new HashMap&lt;&gt;();

    static {
        READERS.put(SnsNotification.class, new ObjectMapper().readerFor(SnsNotification.class));
        READERS.put(SnsSubscriptionConfirmation.class, new ObjectMapper().readerFor(SnsSubscriptionConfirmation.class));
        READERS.put(Quark.class, new ObjectMapper().readerFor(Quark.class));
    }

    @POST
    @Consumes({MediaType.TEXT_PLAIN})
    public Uni&lt;Response&gt; notificationEndpoint(@HeaderParam("x-amz-sns-message-type") String messageType, String message) {
        if (messageType == null) {
            return Uni.createFrom().item(Response.status(400).build());
        }

        if (messageType.equals(NOTIFICATION_TYPE)) {
            return Uni.createFrom().item(readObject(SnsNotification.class, message))
                .onItem().transform(notification -&gt; readObject(Quark.class, notification.getMessage()))
                .onItem().invoke(quark -&gt; LOGGER.infov("Quark[{0}, {1}] collision with the shield.", quark.getFlavor(), quark.getSpin()))
                .onItem().transform(quark -&gt; Response.ok().build());
        } else if (messageType.equals(SUBSCRIPTION_CONFIRMATION_TYPE)) {
            return Uni.createFrom().item(readObject(SnsSubscriptionConfirmation.class, message))
                .onItem().transformToUni(msg -&gt;
                    Uni.createFrom().completionStage(
                        sns.confirmSubscription(confirm -&gt; confirm.topicArn(topicArn).token(msg.getToken())))
                )
                .onItem().invoke(resp -&gt; LOGGER.info("Subscription confirmed. Ready for quarks collisions."))
                .onItem().transform(resp -&gt; Response.ok().build());
        } else if (messageType.equals(UNSUBSCRIPTION_CONFIRMATION_TYPE)) {
            LOGGER.info("We are unsubscribed");
            return Uni.createFrom().item(Response.ok().build());
        }

        return Uni.createFrom().item(Response.status(400).entity("Unknown messageType").build());
    }

    @POST
    @Path("/subscribe")
    public Uni&lt;Response&gt; subscribe() {
        return Uni.createFrom()
            .completionStage(sns.subscribe(s -&gt; s.topicArn(topicArn).protocol("http").endpoint(notificationEndpoint())))
            .onItem().transform(SubscribeResponse::subscriptionArn)
            .onItem().invoke(this::setSubscriptionArn)
            .onItem().invoke(arn -&gt; LOGGER.infov("Subscribed Quarks shield with id = {0} ", arn))
            .onItem().transform(arn -&gt; Response.ok().entity(arn).build());
    }

    @POST
    @Path("/unsubscribe")
    public Uni&lt;Response&gt; unsubscribe() {
        if (subscriptionArn != null) {
            return Uni.createFrom()
                .completionStage(sns.unsubscribe(s -&gt; s.subscriptionArn(subscriptionArn)))
                .onItem().invoke(arn -&gt; LOGGER.infov("Unsubscribed quarks shield for id = {0}", subscriptionArn))
                .onItem().invoke(arn -&gt; subscriptionArn = null)
                .onItem().transform(arn -&gt; Response.ok().build());
        } else {
            return Uni.createFrom().item(Response.status(400).entity("Not subscribed yet").build());
        }
    }

    private String notificationEndpoint() {
        return quarksShieldBaseUrl + "/async/shield";
    }

    private void setSubscriptionArn(String arn) {
        this.subscriptionArn = arn;
    }

    private &lt;T&gt; T readObject(Class&lt;T&gt; clazz, String message) {
        T object = null;
        try {
            object = READERS.get(clazz).readValue(message);
        } catch (JsonProcessingException e) {
            LOGGER.errorv("Unable to deserialize message &lt;{0}&gt; to Class &lt;{1}&gt;", message, clazz.getSimpleName());
            throw new RuntimeException(e);
        }
        return object;
    }
}</code></pre>
</div>
</div>
<div class="paragraph">
<p>And we need to add Netty HTTP client dependency to the <code>pom.xml</code>:</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlightjs highlight"><code data-lang="xml" class="language-xml hljs">&lt;dependency&gt;
    &lt;groupId&gt;software.amazon.awssdk&lt;/groupId&gt;
    &lt;artifactId&gt;netty-nio-client&lt;/artifactId&gt;
&lt;/dependency&gt;</code></pre>
</div>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="configuration-reference"><a class="anchor" href="#configuration-reference"></a>Configuration Reference</h2>
<div class="sectionbody">
<div class="paragraph configuration-legend">
<p><span class="icon"><i class="fa fa-lock" title="Fixed at build time"></i></span> Configuration property fixed at build time - All other configuration properties are overridable at runtime</p>
</div>
<table class="tableblock frame-all grid-all stretch configuration-reference searchable">
<colgroup>
<col style="width: 80%;">
<col style="width: 10%;">
<col style="width: 10%;">
</colgroup>
<tbody>
<tr>
<th class="tableblock halign-left valign-top"><p class="tableblock"><a id="quarkus-amazon-sns_configuration"></a><a href="#quarkus-amazon-sns_configuration">Configuration property</a></p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Type</p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Default</p></th>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><span class="icon"><i class="fa fa-lock" title="Fixed at build time"></i></span> <a id="quarkus-amazon-sns_quarkus.sns.interceptors"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.interceptors">quarkus.sns.interceptors</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>List of execution interceptors that will have access to read and modify the request and response objects as they are processed by the AWS SDK.
 The list should consists of class names which implements <code>software.amazon.awssdk.core.interceptor.ExecutionInterceptor</code> interface.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">list of class name</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><span class="icon"><i class="fa fa-lock" title="Fixed at build time"></i></span> <a id="quarkus-amazon-sns_quarkus.sns.sync-client.type"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.type">quarkus.sns.sync-client.type</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Type of the sync HTTP client implementation</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>url</code>, <code>apache</code></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>url</code></p></td>
</tr>
<tr>
<th class="tableblock halign-left valign-top"><p class="tableblock"><a id="quarkus-amazon-sns_quarkus.sns.sdk"></a><a href="#quarkus-amazon-sns_quarkus.sns.sdk">AWS SDK client configurations</a></p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Type</p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Default</p></th>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.endpoint-override"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.endpoint-override">quarkus.sns.endpoint-override</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The endpoint URI with which the SDK should communicate.
 If not specified, an appropriate endpoint to be used for the given service and region.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">URI</a></p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.api-call-timeout"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.api-call-timeout">quarkus.sns.api-call-timeout</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The amount of time to allow the client to complete the execution of an API call.
 This timeout covers the entire client execution except for marshalling. This includes request handler execution, all HTTP requests including retries, unmarshalling, etc.
 This value should always be positive, if present.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.api-call-attempt-timeout"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.api-call-attempt-timeout">quarkus.sns.api-call-attempt-timeout</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The amount of time to wait for the HTTP request to complete before giving up and timing out.
 This value should always be positive, if present.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<th class="tableblock halign-left valign-top"><p class="tableblock"><a id="quarkus-amazon-sns_quarkus.sns.aws"></a><a href="#quarkus-amazon-sns_quarkus.sns.aws">AWS services configurations</a></p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Type</p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Default</p></th>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.aws.region"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.aws.region">quarkus.sns.aws.region</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>An Amazon Web Services region that hosts the given service.</p>
</div>
<div class="paragraph">
<p>It overrides region provider chain with static value of
region with which the service client should communicate.</p>
</div>
<div class="paragraph">
<p>If not set, region is retrieved via the default providers chain in the following order:</p>
</div>
<div class="ulist">
<ul>
<li>
<p><code>aws.region</code> system property</p>
</li>
<li>
<p><code>region</code> property from the profile file</p>
</li>
<li>
<p>Instance profile file</p>
</li>
</ul>
</div>
<div class="paragraph">
<p>See <code>software.amazon.awssdk.regions.Region</code> for available regions.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">Region</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.type"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.type">quarkus.sns.aws.credentials.type</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Configure the credentials provider that should be used to authenticate with AWS.</p>
</div>
<div class="paragraph">
<p>Available values:</p>
</div>
<div class="ulist">
<ul>
<li>
<p><code>default</code> - the provider will attempt to identify the credentials automatically using the following checks:</p>
<div class="ulist">
<ul>
<li>
<p>Java System Properties - <code>aws.accessKeyId</code> and <code>aws.secretKey</code></p>
</li>
<li>
<p>Environment Variables - <code>AWS_ACCESS_KEY_ID</code> and <code>AWS_SECRET_ACCESS_KEY</code></p>
</li>
<li>
<p>Credential profiles file at the default location (<code>~/.aws/credentials</code>) shared by all AWS SDKs and the AWS CLI</p>
</li>
<li>
<p>Credentials delivered through the Amazon EC2 container service if <code>AWS_CONTAINER_CREDENTIALS_RELATIVE_URI</code> environment variable is set and security manager has permission to access the variable.</p>
</li>
<li>
<p>Instance profile credentials delivered through the Amazon EC2 metadata service</p>
</li>
</ul>
</div>
</li>
<li>
<p><code>static</code> - the provider that uses the access key and secret access key specified in the <code>static-provider</code> section of the config.</p>
</li>
<li>
<p><code>system-property</code> - it loads credentials from the <code>aws.accessKeyId</code>, <code>aws.secretAccessKey</code> and <code>aws.sessionToken</code> system properties.</p>
</li>
<li>
<p><code>env-variable</code> - it loads credentials from the <code>AWS_ACCESS_KEY_ID</code>, <code>AWS_SECRET_ACCESS_KEY</code> and <code>AWS_SESSION_TOKEN</code> environment variables.</p>
</li>
<li>
<p><code>profile</code> - credentials are based on AWS configuration profiles. This loads credentials from
a <a href="http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html">profile file</a>,
allowing you to share multiple sets of AWS security credentials between different tools like the AWS SDK for Java and the AWS CLI.</p>
</li>
<li>
<p><code>container</code> - It loads credentials from a local metadata service. Containers currently supported by the AWS SDK are
<strong>Amazon Elastic Container Service (ECS)</strong> and <strong>AWS Greengrass</strong></p>
</li>
<li>
<p><code>instance-profile</code> - It loads credentials from the Amazon EC2 Instance Metadata Service.</p>
</li>
<li>
<p><code>process</code> - Credentials are loaded from an external process. This is used to support the credential_process setting in the profile
credentials file. See <a href="https://docs.aws.amazon.com/cli/latest/topic/config-vars.html#sourcing-credentials-from-external-processes">Sourcing Credentials From External Processes</a>
for more information.</p>
</li>
<li>
<p><code>anonymous</code> - It always returns anonymous AWS credentials. Anonymous AWS credentials result in un-authenticated requests and will
fail unless the resource or API&#8217;s policy has been configured to specifically allow anonymous access.</p>
</li>
</ul>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>default</code>, <code>static</code>, <code>system-property</code>, <code>env-variable</code>, <code>profile</code>, <code>container</code>, <code>instance-profile</code>, <code>process</code>, <code>anonymous</code></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>default</code></p></td>
</tr>
<tr>
<th class="tableblock halign-left valign-top"><p class="tableblock"><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.default-provider"></a><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.default-provider">Default credentials provider configuration</a></p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Type</p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Default</p></th>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.default-provider.async-credential-update-enabled"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.default-provider.async-credential-update-enabled">quarkus.sns.aws.credentials.default-provider.async-credential-update-enabled</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Whether this provider should fetch credentials asynchronously in the background.
 If this is <code>true</code>, threads are less likely to block, but additional resources are used to maintain the provider.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>false</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.default-provider.reuse-last-provider-enabled"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.default-provider.reuse-last-provider-enabled">quarkus.sns.aws.credentials.default-provider.reuse-last-provider-enabled</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Whether the provider should reuse the last successful credentials provider in the chain.
 Reusing the last successful credentials provider will typically return credentials faster than searching through the chain.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>true</code></p></td>
</tr>
<tr>
<th class="tableblock halign-left valign-top"><p class="tableblock"><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.static-provider"></a><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.static-provider">Static credentials provider configuration</a></p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Type</p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Default</p></th>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.static-provider.access-key-id"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.static-provider.access-key-id">quarkus.sns.aws.credentials.static-provider.access-key-id</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>AWS Access key id</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.static-provider.secret-access-key"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.static-provider.secret-access-key">quarkus.sns.aws.credentials.static-provider.secret-access-key</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>AWS Secret access key</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<th class="tableblock halign-left valign-top"><p class="tableblock"><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.profile-provider"></a><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.profile-provider">AWS Profile credentials provider configuration</a></p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Type</p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Default</p></th>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.profile-provider.profile-name"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.profile-provider.profile-name">quarkus.sns.aws.credentials.profile-provider.profile-name</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The name of the profile that should be used by this credentials provider.
 If not specified, the value in <code>AWS_PROFILE</code> environment variable or <code>aws.profile</code> system property is used and defaults to <code>default</code> name.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<th class="tableblock halign-left valign-top"><p class="tableblock"><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.process-provider"></a><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.process-provider">Process credentials provider configuration</a></p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Type</p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Default</p></th>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.process-provider.async-credential-update-enabled"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.process-provider.async-credential-update-enabled">quarkus.sns.aws.credentials.process-provider.async-credential-update-enabled</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Whether the provider should fetch credentials asynchronously in the background.
 If this is true, threads are less likely to block when credentials are loaded, but additional resources are used to maintain the provider.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>false</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.process-provider.credential-refresh-threshold"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.process-provider.credential-refresh-threshold">quarkus.sns.aws.credentials.process-provider.credential-refresh-threshold</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The amount of time between when the credentials expire and when the credentials should start to be refreshed.
 This allows the credentials to be refreshed *before* they are reported to expire.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>15S</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.process-provider.process-output-limit"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.process-provider.process-output-limit">quarkus.sns.aws.credentials.process-provider.process-output-limit</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The maximum size of the output that can be returned by the external process before an exception is raised.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">MemorySize  <a href="#memory-size-note-anchor" title="More information about the MemorySize format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>1024</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.aws.credentials.process-provider.command"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.aws.credentials.process-provider.command">quarkus.sns.aws.credentials.process-provider.command</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The command that should be executed to retrieve credentials.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<th class="tableblock halign-left valign-top"><p class="tableblock"><a id="quarkus-amazon-sns_quarkus.sns.sync-client"></a><a href="#quarkus-amazon-sns_quarkus.sns.sync-client">Sync HTTP transport configurations</a></p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Type</p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Default</p></th>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.connection-timeout"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.connection-timeout">quarkus.sns.sync-client.connection-timeout</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The maximum amount of time to establish a connection before timing out.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>2S</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.socket-timeout"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.socket-timeout">quarkus.sns.sync-client.socket-timeout</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The amount of time to wait for data to be transferred over an established, open connection before the connection is timed out.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>30S</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.tls-managers-provider.type"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.tls-managers-provider.type">quarkus.sns.sync-client.tls-managers-provider.type</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>TLS managers provider type.</p>
</div>
<div class="paragraph">
<p>Available providers:</p>
</div>
<div class="ulist">
<ul>
<li>
<p><code>none</code> - Use this provider if you don&#8217;t want the client to present any certificates to the remote TLS host.</p>
</li>
<li>
<p><code>system-property</code> - Provider checks the standard <code>javax.net.ssl.keyStore</code>, <code>javax.net.ssl.keyStorePassword</code>, and
<code>javax.net.ssl.keyStoreType</code> properties defined by the
 <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/JSSERefGuide.html">JSSE</a>.</p>
</li>
<li>
<p><code>file-store</code> - Provider that loads a the key store from a file.</p>
</li>
</ul>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>none</code>, <code>system-property</code>, <code>file-store</code></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>system-property</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.tls-managers-provider.file-store.path"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.tls-managers-provider.file-store.path">quarkus.sns.sync-client.tls-managers-provider.file-store.path</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Path to the key store.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">path</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.tls-managers-provider.file-store.type"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.tls-managers-provider.file-store.type">quarkus.sns.sync-client.tls-managers-provider.file-store.type</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Key store type.
 See the KeyStore section in the <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#KeyStore[Java" class="bare">https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#KeyStore[Java</a> Cryptography Architecture Standard Algorithm Name Documentation] for information about standard keystore types.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.tls-managers-provider.file-store.password"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.tls-managers-provider.file-store.password">quarkus.sns.sync-client.tls-managers-provider.file-store.password</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Key store password</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<th class="tableblock halign-left valign-top"><p class="tableblock"><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache"></a><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache">Apache HTTP client specific configurations</a></p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Type</p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Default</p></th>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.connection-acquisition-timeout"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.connection-acquisition-timeout">quarkus.sns.sync-client.apache.connection-acquisition-timeout</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The amount of time to wait when acquiring a connection from the pool before giving up and timing out.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>10S</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.connection-max-idle-time"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.connection-max-idle-time">quarkus.sns.sync-client.apache.connection-max-idle-time</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The maximum amount of time that a connection should be allowed to remain open while idle.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>60S</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.connection-time-to-live"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.connection-time-to-live">quarkus.sns.sync-client.apache.connection-time-to-live</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The maximum amount of time that a connection should be allowed to remain open, regardless of usage frequency.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.max-connections"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.max-connections">quarkus.sns.sync-client.apache.max-connections</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The maximum number of connections allowed in the connection pool.
 Each built HTTP client has its own private connection pool.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">int</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>50</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.expect-continue-enabled"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.expect-continue-enabled">quarkus.sns.sync-client.apache.expect-continue-enabled</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Whether the client should send an HTTP expect-continue handshake before each request.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>true</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.use-idle-connection-reaper"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.use-idle-connection-reaper">quarkus.sns.sync-client.apache.use-idle-connection-reaper</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Whether the idle connections in the connection pool should be closed asynchronously.
 When enabled, connections left idling for longer than <code>quarkus..sync-client.connection-max-idle-time</code> will be closed. This will not close connections currently in use.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>true</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.enabled"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.enabled">quarkus.sns.sync-client.apache.proxy.enabled</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Enable HTTP proxy</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>false</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.endpoint"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.endpoint">quarkus.sns.sync-client.apache.proxy.endpoint</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The endpoint of the proxy server that the SDK should connect through.
 Currently, the endpoint is limited to a host and port. Any other URI components will result in an exception being raised.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">URI</a></p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.username"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.username">quarkus.sns.sync-client.apache.proxy.username</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The username to use when connecting through a proxy.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.password"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.password">quarkus.sns.sync-client.apache.proxy.password</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The password to use when connecting through a proxy.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.ntlm-domain"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.ntlm-domain">quarkus.sns.sync-client.apache.proxy.ntlm-domain</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>For NTLM proxies - the Windows domain name to use when authenticating with the proxy.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.ntlm-workstation"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.ntlm-workstation">quarkus.sns.sync-client.apache.proxy.ntlm-workstation</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>For NTLM proxies - the Windows workstation name to use when authenticating with the proxy.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.preemptive-basic-authentication-enabled"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.preemptive-basic-authentication-enabled">quarkus.sns.sync-client.apache.proxy.preemptive-basic-authentication-enabled</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Whether to attempt to authenticate preemptively against the proxy server using basic authentication.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.non-proxy-hosts"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.sync-client.apache.proxy.non-proxy-hosts">quarkus.sns.sync-client.apache.proxy.non-proxy-hosts</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The hosts that the client is allowed to access without going through the proxy.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">list of string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<th class="tableblock halign-left valign-top"><p class="tableblock"><a id="quarkus-amazon-sns_quarkus.sns.async-client"></a><a href="#quarkus-amazon-sns_quarkus.sns.async-client">Netty HTTP transport configurations</a></p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Type</p></th>
<th class="tableblock halign-left valign-middle"><p class="tableblock">Default</p></th>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.max-concurrency"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.max-concurrency">quarkus.sns.async-client.max-concurrency</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The maximum number of allowed concurrent requests.
 For HTTP/1.1 this is the same as max connections. For HTTP/2 the number of connections that will be used depends on the max streams allowed per connection.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">int</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>50</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.max-pending-connection-acquires"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.max-pending-connection-acquires">quarkus.sns.async-client.max-pending-connection-acquires</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The maximum number of pending acquires allowed.
 Once this exceeds, acquire tries will be failed.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">int</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>10000</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.read-timeout"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.read-timeout">quarkus.sns.async-client.read-timeout</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The amount of time to wait for a read on a socket before an exception is thrown.
 Specify <code>0</code> to disable.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>30S</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.write-timeout"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.write-timeout">quarkus.sns.async-client.write-timeout</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The amount of time to wait for a write on a socket before an exception is thrown.
 Specify <code>0</code> to disable.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>30S</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.connection-timeout"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.connection-timeout">quarkus.sns.async-client.connection-timeout</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The amount of time to wait when initially establishing a connection before giving up and timing out.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>10S</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.connection-acquisition-timeout"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.connection-acquisition-timeout">quarkus.sns.async-client.connection-acquisition-timeout</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The amount of time to wait when acquiring a connection from the pool before giving up and timing out.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>2S</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.connection-time-to-live"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.connection-time-to-live">quarkus.sns.async-client.connection-time-to-live</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The maximum amount of time that a connection should be allowed to remain open, regardless of usage frequency.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.connection-max-idle-time"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.connection-max-idle-time">quarkus.sns.async-client.connection-max-idle-time</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The maximum amount of time that a connection should be allowed to remain open while idle.
 Currently has no effect if <code>quarkus..async-client.use-idle-connection-reaper</code> is false.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>60S</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.use-idle-connection-reaper"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.use-idle-connection-reaper">quarkus.sns.async-client.use-idle-connection-reaper</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Whether the idle connections in the connection pool should be closed.
 When enabled, connections left idling for longer than <code>quarkus..async-client.connection-max-idle-time</code> will be closed. This will not close connections currently in use.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>true</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.protocol"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.protocol">quarkus.sns.async-client.protocol</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The HTTP protocol to use.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>http1-1</code>, <code>http2</code></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>http1-1</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.ssl-provider"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.ssl-provider">quarkus.sns.async-client.ssl-provider</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The SSL Provider to be used in the Netty client.
 Default is <code>OPENSSL</code> if available, <code>JDK</code> otherwise.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>jdk</code>, <code>openssl</code>, <code>openssl-refcnt</code></p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.http2.max-streams"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.http2.max-streams">quarkus.sns.async-client.http2.max-streams</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The maximum number of concurrent streams for an HTTP/2 connection.
 This setting is only respected when the HTTP/2 protocol is used.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">long</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>4294967295</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.http2.initial-window-size"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.http2.initial-window-size">quarkus.sns.async-client.http2.initial-window-size</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The initial window size for an HTTP/2 stream.
 This setting is only respected when the HTTP/2 protocol is used.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">int</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>1048576</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.http2.health-check-ping-period"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.http2.health-check-ping-period">quarkus.sns.async-client.http2.health-check-ping-period</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Sets the period that the Netty client will send <code>PING</code> frames to the remote endpoint to check the health of the connection. To disable this feature, set a duration of 0.
 This setting is only respected when the HTTP/2 protocol is used.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html">Duration</a>
  <a href="#duration-note-anchor" title="More information about the Duration format"><span class="icon"><i class="fa fa-question-circle"></i></span></a></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>5</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.proxy.enabled"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.proxy.enabled">quarkus.sns.async-client.proxy.enabled</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Enable HTTP proxy.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>false</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.proxy.endpoint"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.proxy.endpoint">quarkus.sns.async-client.proxy.endpoint</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The endpoint of the proxy server that the SDK should connect through.
 Currently, the endpoint is limited to a host and port. Any other URI components will result in an exception being raised.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><a href="https://docs.oracle.com/javase/8/docs/api/java/net/URI.html">URI</a></p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.proxy.non-proxy-hosts"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.proxy.non-proxy-hosts">quarkus.sns.async-client.proxy.non-proxy-hosts</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The hosts that the client is allowed to access without going through the proxy.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">list of string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.tls-managers-provider.type"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.tls-managers-provider.type">quarkus.sns.async-client.tls-managers-provider.type</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>TLS managers provider type.</p>
</div>
<div class="paragraph">
<p>Available providers:</p>
</div>
<div class="ulist">
<ul>
<li>
<p><code>none</code> - Use this provider if you don&#8217;t want the client to present any certificates to the remote TLS host.</p>
</li>
<li>
<p><code>system-property</code> - Provider checks the standard <code>javax.net.ssl.keyStore</code>, <code>javax.net.ssl.keyStorePassword</code>, and
<code>javax.net.ssl.keyStoreType</code> properties defined by the
 <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/JSSERefGuide.html">JSSE</a>.</p>
</li>
<li>
<p><code>file-store</code> - Provider that loads a the key store from a file.</p>
</li>
</ul>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>none</code>, <code>system-property</code>, <code>file-store</code></p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>system-property</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.tls-managers-provider.file-store.path"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.tls-managers-provider.file-store.path">quarkus.sns.async-client.tls-managers-provider.file-store.path</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Path to the key store.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">path</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.tls-managers-provider.file-store.type"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.tls-managers-provider.file-store.type">quarkus.sns.async-client.tls-managers-provider.file-store.type</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Key store type.
 See the KeyStore section in the <a href="https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#KeyStore[Java" class="bare">https://docs.oracle.com/javase/8/docs/technotes/guides/security/StandardNames.html#KeyStore[Java</a> Cryptography Architecture Standard Algorithm Name Documentation] for information about standard keystore types.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.tls-managers-provider.file-store.password"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.tls-managers-provider.file-store.password">quarkus.sns.async-client.tls-managers-provider.file-store.password</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Key store password</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.event-loop.override"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.event-loop.override">quarkus.sns.async-client.event-loop.override</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Enable the custom configuration of the Netty event loop group.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">boolean</p></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock"><code>false</code></p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.event-loop.number-of-threads"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.event-loop.number-of-threads">quarkus.sns.async-client.event-loop.number-of-threads</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>Number of threads to use for the event loop group.
 If not set, the default Netty thread count is used (which is double the number of available processors unless the <code>io.netty.eventLoopThreads</code> system property is set.</p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">int</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a id="quarkus-amazon-sns_quarkus.sns.async-client.event-loop.thread-name-prefix"></a><code><a href="#quarkus-amazon-sns_quarkus.sns.async-client.event-loop.thread-name-prefix">quarkus.sns.async-client.event-loop.thread-name-prefix</a></code></p>
</div>
<div class="openblock description">
<div class="content">
<div class="paragraph">
<p>The thread name prefix for threads created by this thread factory used by event loop group.
 The prefix will be appended with a number unique to the thread factory and a number unique to the thread.
 If not specified it defaults to <code>aws-java-sdk-NettyEventLoop</code></p>
</div>
</div>
</div></div></td>
<td class="tableblock halign-left valign-middle"><p class="tableblock">string</p></td>
<td class="tableblock halign-left valign-middle"></td>
</tr>
</tbody>
</table>
<div id="duration-note-anchor" class="admonitionblock note">
<table>
<tr>
<td class="icon">
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
<div class="title">About the Duration format</div>
<div class="paragraph">
<p>The format for durations uses the standard <code>java.time.Duration</code> format.
You can learn more about it in the <a href="https://docs.oracle.com/javase/8/docs/api/java/time/Duration.html#parse-java.lang.CharSequence-">Duration#parse() javadoc</a>.</p>
</div>
<div class="paragraph">
<p>You can also provide duration values starting with a number.
In this case, if the value consists only of a number, the converter treats the value as seconds.
Otherwise, <code>PT</code> is implicitly prepended to the value to obtain a standard <code>java.time.Duration</code> format.</p>
</div>
</td>
</tr>
</table>
</div>
<div id="memory-size-note-anchor" class="admonitionblock note">
<table>
<tr>
<td class="icon">
<i class="fa icon-note" title="Note"></i>
</td>
<td class="content">
<div class="title">About the MemorySize format</div>
<div class="paragraph">
<p>A size configuration option recognises string in this format (shown as a regular expression): <code>[0-9]+[KkMmGgTtPpEeZzYy]?</code>.
If no suffix is given, assume bytes.</p>
</div>
</td>
</tr>
</table>
</div>
</div>
</div>
    </div>
  </div>
</div>

  </div>

  <div class="content project-footer">
  <div class="footer-section">
    <div class="logo-wrapper">
      <a href="/"><img src="/assets/images/quarkus_logo_horizontal_rgb_reverse.svg" class="project-logo" title="Quarkus"></a>
    </div>
  </div>
  <div class="grid-wrapper">
    <p class="grid__item width-3-12">Quarkus is open. All dependencies of this project are available under the <a href='https://www.apache.org/licenses/LICENSE-2.0' target='_blank'>Apache Software License 2.0</a> or compatible license.<br /><br />This website was built with <a href='https://jekyllrb.com/' target='_blank'>Jekyll</a>, is hosted on <a href='https://pages.github.com/' target='_blank'>Github Pages</a> and is completely open source. If you want to make it better, <a href='https://github.com/quarkusio/quarkusio.github.io' target='_blank'>fork the website</a> and show us what you’ve got.</p>

    
      <div class="width-1-12 project-links">
        <span>Navigation</span>
        <ul class="footer-links width-1-12">
          
            <li><a href="/">Home</a></li>
          
            <li><a href="/guides">Guides</a></li>
          
            <li><a href="/community/#contributing">Contribute</a></li>
          
            <li><a href="/faq">FAQ</a></li>
          
            <li><a href="/get-started">Get Started</a></li>
          
        </ul>
      </div>
    
      <div class="width-1-12 project-links">
        <span>Contribute</span>
        <ul class="footer-links width-1-12">
          
            <li><a href="https://twitter.com/quarkusio">Follow us</a></li>
          
            <li><a href="https://github.com/quarkusio">GitHub</a></li>
          
            <li><a href="/security">Security&nbsp;policy</a></li>
          
        </ul>
      </div>
    
      <div class="width-1-12 project-links">
        <span>Get Help</span>
        <ul class="footer-links width-1-12">
          
            <li><a href="https://groups.google.com/forum/#!forum/quarkus-dev">Forums</a></li>
          
            <li><a href="https://quarkusio.zulipchat.com">Chatroom</a></li>
          
        </ul>
      </div>
    

    
      <div class="width-3-12 more-links">
        <span>Quarkus is made of community projects</span>
        <ul class="footer-links">
          
            <li><a href="https://vertx.io/" target="_blank">Eclipse Vert.x</a></li>
          
            <li><a href="https://microprofile.io" target="_blank">Eclipse MicroProfile</a></li>
          
            <li><a href="https://hibernate.org" target="_blank">Hibernate</a></li>
          
            <li><a href="https://netty.io" target="_blank">Netty</a></li>
          
            <li><a href="https://resteasy.github.io" target="_blank">RESTEasy</a></li>
          
            <li><a href="https://camel.apache.org" target="_blank">Apache Camel</a></li>
          
            <li><a href="https://code.quarkus.io/" target="_blank">And many more...</a></li>
          
        </ul>
      </div>
    
  </div>
</div>
  <div class="content redhat-footer">
  <div class="grid-wrapper">
    <span class="licence">
      <i class="fab fa-creative-commons"></i><i class="fab fa-creative-commons-by"></i> <a href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC by 3.0</a> | <a href="https://www.redhat.com/en/about/privacy-policy">Privacy Policy</a>
    </span>
    <span class="redhat">
      Sponsored by
    </span>
    <span class="redhat-logo">
      <a href="https://www.redhat.com/" target="_blank"><img src="/assets/images/redhat_reversed.svg"></a>
    </span>
  </div>
</div>


  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js" integrity="sha384-8gBf6Y4YYq7Jx97PIqmTwLPin4hxIzQw5aDmUg/DDhul9fFpbbLcLh3nTIIDJKhx" crossorigin="anonymous"></script>
  <script type="text/javascript" src="/assets/javascript/mobile-nav.js"></script>
  <script type="text/javascript" src="/assets/javascript/scroll-down.js"></script>
  <script src="/assets/javascript/satellite.js" type="text/javascript"></script>
  <script src="https://quarkus.io/guides/javascript/config.js" type="text/javascript"></script>
  <script src="/assets/javascript/search-filter.js" type="text/javascript"></script>
  <script src="/assets/javascript/back-to-top.js" type="text/javascript"></script>
</body>

</html>
